]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Ensure completion is disabled when OSK is destroyed
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Nov 2022 12:26:44 +0000 (13:26 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 16 Nov 2022 18:06:27 +0000 (18:06 +0000)
If the OSK is destroyed while visible without being close()'d first,
the completion mode might remain turned on. Ensure it is turned off
on OSK destruction so that typing-booster has no chance to remain
turned on.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2543>

js/ui/keyboard.js

index 78c024524e594cb97111068a6e790a0eecca42e5..b3c4cbe32f1d7e032db29b7e7bdf06af7089f1b1 100644 (file)
@@ -1388,6 +1388,8 @@ var Keyboard = GObject.registerClass({
             this._languagePopup.destroy();
             this._languagePopup = null;
         }
+
+        IBusManager.getIBusManager().setCompletionEnabled(false, () => Main.inputMethod.update());
     }
 
     _setupKeyboard() {